package file1;

import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class a4 {
public static void main(String[] args) throws IOException {
	File file = new File("D:\\11\\1.txt");
	FileWriter fw = new FileWriter("D:\\11\\4.txt");
	FileReader fileReader = new FileReader(file);
	char[] chara =new char[1];
	while (fileReader.read(chara)!=-1) {
		System.out.println(chara[0]);
		fw.write(chara);
	}
	fw.flush();
}
}
